package com.ruoyi.qiushi.domain.system;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息管理对象 qiushi_message
 *
 * @author ruoyi
 * @date 2023-12-27
 */
public class QiushiMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 是否已读,是否已答 0否 1是 */
    @Excel(name = "是否已读,是否已答 0否 1是")
    private String readFlag;

    /** 阅读/问答时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:MM:ss")
    @Excel(name = "阅读/问答时间", width = 30, dateFormat = "yyyy-MM-dd hh:MM:ss")
    private Date readTime;

    /** 类型  1.系统通知  2.问卷调查 3普通订单消息 4积分订单消息 */
    @Excel(name = "类型  1.系统通知  2.问卷调查 3普通订单消息 4积分订单消息")
    private String type;

    /** 关联数据   问卷调查关联qiushi_form.id   订单消息关联 trade_order.id,  积分订单关联trade_poin_order.id  */
    @Excel(name = "关联数据   问卷调查关联qiushi_form.id   订单消息关联 trade_order.id,  积分订单关联trade_poin_order.id ")
    private Long joinId;

    /** 0正常 1删除 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setReadFlag(String readFlag)
    {
        this.readFlag = readFlag;
    }

    public String getReadFlag()
    {
        return readFlag;
    }
    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime()
    {
        return readTime;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setJoinId(Long joinId)
    {
        this.joinId = joinId;
    }

    public Long getJoinId()
    {
        return joinId;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("readFlag", getReadFlag())
                .append("readTime", getReadTime())
                .append("type", getType())
                .append("joinId", getJoinId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
